/**
 * 
 */
package org.traffometer.traffosim;

/**
 * Provides an example of a user interface that throws an exception.
 * @author Mark Stillwell
 */
public class ExampleExceptionUi extends UserInterface {

  /**
   * Required Constructor.
   * @param args command line arguments
   */
  ExampleExceptionUi(String[] args) {
    super(args);
  }

  /**
   * Throws a null pointer exception.
   * @see org.traffometer.traffosim.UserInterface#start()
   */
  @Override
  public void start() {
    String test = null;
    // calling tostring is deliberate, should cause NullPointerException
    System.out.println(test.toString()); // NOPMD
  }
}
